import React, { memo } from "react";
import { AskTabControlWrapper } from "./style";
import { askMenu } from "@/common/local-data";
import { NavLink } from "react-router-dom";


export default memo(function AskTabControl() {
  return (
    <AskTabControlWrapper>
      <div className="content">
        {askMenu.map((item) => {
          return (
            <div key={item.title} className="item">
              <NavLink to={item.link}>{item.title}</NavLink>
            </div>
          );
        })}
      </div>
    </AskTabControlWrapper>
  );
});
